<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head th:include="include/admin/adminHeader::html('电影管理')" ></head>
<body>
<div th:replace="include/admin/adminNavigator::html" ></div>
<script>
    $(function(){
        var data4Vue = {
            uri:'categories',
            beans: []
        };

        //ViewModel
        var vue = new Vue({
            el: '#workingArea',
            data: data4Vue,
            mounted:function(){ //mounted　表示这个 Vue 对象加载成功了
                this.list();
            },
            methods: {
                list:function(){
                    var url =  this.uri;
                    axios.get(url).then(function(response) {
                        vue.beans = response.data;
                    });
                }
            }
        });
    });

</script>
<div id="workingArea" >
    <h1 class="label label-info" >订单管理</h1>
</div>
<div align="center">
    <form action="editOrdersByOid" method="post">
        订单编号：<span th:text="${orders.oid}"/><input type="hidden" name="oid" id="oid" th:value="${orders.oid}"/><br/>
        用户编号<input type="text"  name="uid" id="uid" th:value="${orders.uid}"><br/>
        电影编号<input type="text"  name="mid" id="mid" th:value="${orders.mid}"><br/>
        影院编号<input type="text"  name="cid" id="cid" th:value="${orders.cid}"><br/>
        订单时间<input type="text"  name="order_time" id="order_time" th:value="${orders.order_time}"><br/>
        <input type="submit" value="修改订单">
    </form>
</div>
</body>
</html>
